package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the per_cwa_q_type database table.
 * 
 */
@Entity
@Table(name="per_cwa_q_type")
@NamedQuery(name="PerCwaQType.findAll", query="SELECT p FROM PerCwaQType p")
public class PerCwaQType implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int typeid;

	private String typedx;

	private String typetime;

	private String typexz;

	private String typezl;

	//bi-directional many-to-one association to PerCwaQLae
	@OneToMany(mappedBy="perCwaQType")
	private List<PerCwaQLae> perCwaQLaes;

	public PerCwaQType() {
	}

	public int getTypeid() {
		return this.typeid;
	}

	public void setTypeid(int typeid) {
		this.typeid = typeid;
	}

	public String getTypedx() {
		return this.typedx;
	}

	public void setTypedx(String typedx) {
		this.typedx = typedx;
	}

	public String getTypetime() {
		return this.typetime;
	}

	public void setTypetime(String typetime) {
		this.typetime = typetime;
	}

	public String getTypexz() {
		return this.typexz;
	}

	public void setTypexz(String typexz) {
		this.typexz = typexz;
	}

	public String getTypezl() {
		return this.typezl;
	}

	public void setTypezl(String typezl) {
		this.typezl = typezl;
	}

	public List<PerCwaQLae> getPerCwaQLaes() {
		return this.perCwaQLaes;
	}

	public void setPerCwaQLaes(List<PerCwaQLae> perCwaQLaes) {
		this.perCwaQLaes = perCwaQLaes;
	}

	public PerCwaQLae addPerCwaQLae(PerCwaQLae perCwaQLae) {
		getPerCwaQLaes().add(perCwaQLae);
		perCwaQLae.setPerCwaQType(this);

		return perCwaQLae;
	}

	public PerCwaQLae removePerCwaQLae(PerCwaQLae perCwaQLae) {
		getPerCwaQLaes().remove(perCwaQLae);
		perCwaQLae.setPerCwaQType(null);

		return perCwaQLae;
	}

}